package io.cici.cc.mybatis.lite.parse;

import java.util.Properties;


/**
 * @author huihui
 */
public class FixedVariableParser {

    public static String parse(String script, Properties variables) {
        FixedVariableTokenHandler fixedVariableTokenHandler = new FixedVariableTokenHandler(variables);
        TokenParser tokenParser = new TokenParser("${", "}", fixedVariableTokenHandler);
        return tokenParser.parse(script);
    }

}
